﻿/******************************************************   
创建者: cyl
创建时间: 2018-09-01
修改:
修改时间: 
功能: 报表条件配置
 ******************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using com.nm.Attributes;

namespace WeiXinAPI.model
{
    public class ConditionConfigModel
    {
        public class ReportConfigModel
        {
            [ParamDescription("配置表ID")]
            public int config_id { get; set; }
            [ParamDescription("报表ID")]
            public int report_id { get; set; }
            [ParamDescription("序号")]
            public int config_sequence { get; set; }
            [ParamDescription("文本描述")]
            public string config_textdescription { get; set; }
            [ParamDescription("控件类型：time,text,radio,checkbox,dropdown")]
            public string config_controltype { get; set; }
            [ParamDescription("控件ID")]
            public string config_controlid { get; set; }
            [ParamDescription("数据来源：针对下拉框")]
            public string config_source { get; set; }
            [ParamDescription("默认值 时间默认值为数值：0为当天，－1为前一天；")]
            public string config_value { get; set; }
            [ParamDescription("上级控件ID")]
            public string config_cascade { get; set; }
            [ParamDescription("传递给报表的参数名")]
            public string config_paramname { get; set; }
        }

        public class ReportParameter
        {
            [ParamDescription("报表ID")]
            public int report_id { get; set; }
            [ParamDescription("报表参数列表")]
            public List<ReportConfigV2Model> list { get; set; }
        }

        //接收提交保存的参数实体类
        public class ReportConfigV2Model
        {
            [ParamDescription("报表ID")]
            public int report_id { get; set; }
            [ParamDescription("序号")]
            public int config_sequence { get; set; }
            [ParamDescription("文本描述")]
            public string config_textdescription { get; set; }
            [ParamDescription("控件类型：time,text,radio,checkbox,dropdown")]
            public string config_controltype { get; set; }
            [ParamDescription("控件ID")]
            public string config_controlid { get; set; }
            [ParamDescription("数据来源：针对下拉框")]
            public string config_source { get; set; }
            [ParamDescription("默认值 时间默认值为数值：0为当天，－1为前一天；")]
            public string config_value { get; set; }
            [ParamDescription("上级控件ID")]
            public string config_cascade { get; set; }
            [ParamDescription("传递给报表的参数名")]
            public string config_paramname { get; set; }
        }
    }
}
